export default {
  // 命名空间
  namespaced: true,
  state: {
    selectedAddress: {}
  },
  getters: {},
  mutations: {
    setSelectedAddress(state, payload) {
      // console.log('payload -----> ', payload);
      const pages = getCurrentPages()
      const current = pages[pages.length - 1]
      if (current.options.from === 'order') {
        state.selectedAddress = payload
        uni.navigateBack();
      }

    }
  },
  actions: {},
};
